package com.adtech.core.dao.session.factory;

/**
 * 可配置动态加载任务
 * 
 * @author Dormin
 * @since 2012-6-15
 * 
 * @Copyright (C) 2012 AD Tech Workshop All Right Reserved
 */
public class ConfigDynamicLoadTask implements java.io.Serializable {

	private static final long serialVersionUID = 5339650386620575976L;
	
	private String entityName;
	private Class entityClass;
	
	public ConfigDynamicLoadTask(String entityName,Class entityClass) {
		this.entityName = entityName;
		this.entityClass = entityClass;
	}
	
	public String getEntityName() {
		return entityName;
	}
	public void setEntityName(String entityName) {
		this.entityName = entityName;
	}
	public Class getEntityClass() {
		return entityClass;
	}
	public void setEntityClass(Class entityClass) {
		this.entityClass = entityClass;
	}
	public String getHbmFilePath() {
		if(entityName!=null) {
			String hbmFilePath = "/"+entityName.replace(".", "/")+".hbm.xml";
			return hbmFilePath;
		}
		return null;
	}
	
}
